package com.zxw.flow.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.domain.entity.FlowNodes;
import com.zxw.flow.domain.entity.FlowNodesModel;
import com.zxw.flow.domain.vo.FlowNodesModelVO;
import com.zxw.flow.domain.vo.FlowNodesVO;
import com.zxw.flow.domain.vo.FlowTypePageVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author Xuewei.Zhang
 * @date 2022/7/6
 */
public interface FlowNodesApi {
    @GetMapping("/page")
    BasePageRes<FlowNodes> page(FlowTypePageVO flowTypePageVO);

    @GetMapping("/{flowNodesId}")
    BaseRes<FlowNodes> findFlowNodesById(@PathVariable("flowNodesId") Long flowNodesId);

    @PostMapping("/insert")
    BaseRes<FlowNodesVO> insertFlowNodes(@RequestBody FlowNodesVO flowNodesVO);

    @PutMapping("/update/{flowNodesId}")
    BaseRes updateFlowNodes(@PathVariable("flowNodesId") Long flowNodesId, @RequestBody FlowNodesVO flowNodesVO);

    @DeleteMapping("/{flowNodesIds}")
    BaseRes deleteFlowNodes(@PathVariable("flowNodesIds") String flowNodesIds);
}
